<template>
  <el-form-item :label="prop.name" :prop="prop.id">
    <template slot="label">
      <rva-search-config :prop="prop"></rva-search-config>
    </template>
    <el-radio-group v-bind:value="value" @input="$emit('input', $event)">
      <el-radio
          v-for="dict in dictData"
          :key="dict.dictValue"
          :label="dict.dictValue"
      >{{dict.dictLabel}}</el-radio>
    </el-radio-group>
  </el-form-item>
</template>

<script>
import {RvaUtils} from '@/api/rva/util'

export default {
  name: "RvaFormRadio",
  data() {
    return {
      rules:[],
      dictData: [],
      disabled: false
    }
  },
  props : ['prop', 'value', 'formRef', 'formData'],
  created() {
    RvaUtils.getDicts(this.prop.dictType, this);
  }
}
</script>
